<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center contactUs_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub contactUs_fd0_0'>
				<view class='flex flex-wrap align-center justify-center contactUs_fd0_0_c0' @tap.stop="handleJumpDiy"
					data-type="back" data-url="1">
					<text class='fu-iconfont2  contactUs_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-stretch justify-center'>
					<text class='contactUs_fd0_0_c1_c0'>联系我们</text>
				</view>
				<view class='flex flex-wrap align-center contactUs_fd0_0_c0'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#cd962d"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<block v-else>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center contactUs_flex_1">
				<image class="contactUs_flex_1_0" :src="userInfo.plate_img" mode="aspectFill"></image>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center benben-flex-layout">
				<text class='contactUs_fd2_0'>{{userInfo.corporate_name}}</text>
				<view class='flex flex-direction flex-wrap align-stretch contactUs_fd2_1'>
					<view class='flex flex-wrap align-center contactUs_fd2_1_c0'>
						<image class='contactUs_fd2_1_c0_c0' mode="aspectFit" :src='STATIC_URL+"65.png"'></image>
						<text class='contactUs_fd2_1_c0_c1'>微信号：</text>
						<text class='contactUs_fd2_1_c0_c2'>{{userInfo.app_wx}}</text>
					</view>
					<view class='flex flex-wrap align-center contactUs_fd2_1_c0'>
						<image class='contactUs_fd2_1_c0_c0' mode="aspectFit" :src='STATIC_URL+"66.png"'></image>
						<text class='contactUs_fd2_1_c0_c1'>QQ：</text>
						<text class='contactUs_fd2_1_c0_c2'>{{userInfo.app_qq}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<image class='contactUs_fd2_1_c0_c0' mode="aspectFit" :src='STATIC_URL+"67.png"'></image>
						<text class='contactUs_fd2_1_c0_c1'>公司邮箱：</text>
						<text class='contactUs_fd2_1_c0_c2'>{{userInfo.email}}</text>
					</view>
				</view>
				<view class='flex flex-wrap align-stretch justify-between contactUs_fd2_2'>
					<view class='flex flex-direction flex-wrap align-stretch'>
						<view class='flex flex-wrap align-center contactUs_fd2_2_c0_c0'>
							<text class='contactUs_fd2_2_c0_c0_c0'>呼叫客服 </text>
							<text class='contactUs_fd2_2_c0_c0_c0'>{{userInfo.work_time}}</text>
						</view>
						<text class='contactUs_fd2_2_c0_c1'>{{userInfo.plate_phone}}</text>
					</view>
					<view class='flex flex-wrap align-center' @tap.stop="getPhone">
						<image class='contactUs_fd2_2_c1_c0' mode="aspectFit" :src='STATIC_URL+"68.png"'></image>
					</view>
				</view>
				<view class='flex flex-wrap align-stretch justify-between contactUs_fd2_3'>
					<view class='flex flex-direction flex-wrap align-stretch'>
						<view class='flex flex-wrap align-center contactUs_fd2_3_c0_c0'>
							<text class='contactUs_fd2_2_c0_c0_c0'>工作时间</text>
						</view>
						<text class='contactUs_fd2_2_c0_c0_c0'>{{userInfo.work_time}}</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<image class='contactUs_fd2_2_c1_c0' mode="aspectFit" :src='STATIC_URL+"69.png"'></image>
					</view>
				</view>
			</view>
		</block>
		<!---flex布局flex布局结束-->

	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"bannerIndexfd1_0": 0,
				'userInfo': {},
				"isShow": true,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.queryUserInfoFunc();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取用户详细信息
			async queryUserInfoFunc() {
				//请求方法
				//数据验证

				let datauserInfo = await this.$api.post(global.apiUrls.post5c78c4772da97, {

				});
				this.isShow = false;
				if (datauserInfo.data.code != 1) {
					this.$message.info(datauserInfo.data.msg);
					return
				}
				let infouserInfo = datauserInfo.data;
				this.userInfo = infouserInfo.data;
			},
			getPhone() {
				let _this = this;
				if (uni.getStorageSync('is_phone') == 0) {
					uni.showModal({
						title: '提示',
						content: '访问您的拨打电话权限，使用拨打电话功能，用于联系客服，是否允许？',
						success: function(res) {
							if (res.confirm) {
								console.log('用户点击确定');
								uni.setStorageSync('is_phone', 1);
								uni.makePhoneCall({
									phoneNumber: _this.userInfo.plate_phone, //电话号码
									success: function(e) {
										console.log(e);
									},
									fail: function(e) {
										console.log(e);
								
									}
								})
							} else if (res.cancel) {
								console.log('用户点击取消');
							}
						},
						fail: function(err) {
							console.log(err);
						}
					})
				} else {
					uni.makePhoneCall({
						phoneNumber: _this.userInfo.plate_phone, //电话号码
						success: function(e) {
							console.log(e);
						},
						fail: function(e) {
							console.log(e);
					
						}
					})
				}
			}
			
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenbgColor1);
		background-size: 100% auto !important;
	}

	.contactUs_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.contactUs_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 88rpx;
	}

	.contactUs_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.contactUs_fd0_0_c0 {
		width: 50rpx;
		height: 50rpx;
	}

	.contactUs_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.contactUs_flex_1 {
		height: 320rpx;
		width: 100%;
	}

	.contactUs_flex_1_0 {
		width: 100%;
		height: 100%;
	}

	.contactUs_numberfd1_0_c0 {
		background: #525050;
		position: absolute;
		bottom: 20rpx;
		right: 30rpx;
		width: 80rpx;
		height: 40rpx;
		border-radius: 6rpx 6rpx 6rpx 6rpx;
		font-size: 24rpx;
		color: #FFFFFF;
		line-height: 46rpx;
		font-weight: 400;
	}

	.contactUs_fd1_0_c1 {
		width: 750rpx;
		height: 320rpx;
	}

	.contactUs_fd1_0_c1_c0 {
		width: 100%;
		height: 100%;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.contactUs_fd1_0 {
		width: 750rpx;
		height: 300rpx;
	}

	.contactUs_swiperDotUnselectedfd1_0 {
		border: 1px solid rgba(0, 0, 0, 0.3);
		background: rgba(0, 0, 0, 0.3);
		width: 16rpx;
		height: 16rpx;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	.contactUs_swiperDotSelectedfd1_0 {
		border: 1px solid #00A7FF;
		background: #00A7FF;
		width: 16rpx;
		height: 16rpx;
		border-radius: 100rpx 100rpx 100rpx 100rpx;
		margin: 0rpx 6rpx 0rpx 0rpx;
		font-size: 24rpx;
		color: #fff;
	}

	::v-deep .contactUs_swiperDotfd1_0 {
		position: absolute;
		bottom: 20rpx;
		left: 0rpx;
		right: 0rpx;
	}

	.contactUs_fd2_3_c0_c0 {
		margin: 0rpx 0rpx 20rpx 0rpx;
	}

	.contactUs_fd2_3 {
		border: 1px solid #EEEEEE;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		width: 558rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
		padding: 20rpx 40rpx 20rpx 40rpx;
	}

	.contactUs_fd2_2_c1_c0 {
		width: 74rpx;
		height: 74rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.contactUs_fd2_2_c0_c1 {
		color: #FF7F50;
		font-size: 48rpx;
		font-weight: 900;
		line-height: 57rpx;
	}

	.contactUs_fd2_2_c0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.contactUs_fd2_2_c0_c0 {
		margin: 0rpx 0rpx 6rpx 0rpx;
	}

	.contactUs_fd2_2 {
		border: 1px solid #EEEEEE;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		width: 558rpx;
		margin: 138rpx 0rpx 0rpx 0rpx;
		padding: 20rpx 40rpx 20rpx 40rpx;
	}

	.contactUs_fd2_1_c0_c2 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.contactUs_fd2_1_c0_c1 {
		margin: 0rpx 0rpx 0rpx 16rpx;
		color: #333333;
		font-size: 28rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.contactUs_fd2_1_c0_c0 {
		width: 26rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.contactUs_fd2_1_c0 {
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.contactUs_fd2_1 {
		border: 1px solid #CD962D;
		background: rgba(238, 124, 81, 0);
		margin: 50rpx 0rpx 0rpx 0rpx;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		width: 524rpx;
		padding: 32rpx;
	}

	.contactUs_fd2_0 {
		margin: 24rpx 0rpx 0rpx 0rpx;
		color: #333333;
		font-size: 32rpx;
		font-weight: 700;
		line-height: 45rpx;
	}
</style>